package view.mediator 
{
	import event.ShowPanelEvent;
	import org.robotlegs.mvcs.Mediator;
	import view.ui.ListView;
	
	/**
	 * ...
	 * @author Qi Donghui
	 */
	public class ListViewMediator extends Mediator 
	{
		[Inject]
		public var myView:ListView;
		
		public function ListViewMediator() 
		{
			
		}
		
		override public function onRegister():void 
		{
			myView.addEventListener(ShowPanelEvent.SHOW_ADD_IDEA_PANEL, onShowPanel);
		}
		
		private function onShowPanel(e:ShowPanelEvent):void 
		{
			dispatch(e.clone());
		}
		
	}

}